package com.guli.third.controller;

import com.guli.common.utils.R;
import com.guli.third.service.OssService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;

@RestController("/oss")
public class OssController {
    @Autowired
    private OssService ossService;

    @GetMapping("/policy")
    public R policy() {
        Map<String, String> respMap = ossService.getPolicy();
        return R.ok().put("data", respMap);
    }
}
